package ModelLayer;

import java.util.ArrayList;

/**
 *
 * @author Gruppe 2
 */
public class SalesOrder {
    private int salesOrderID;
    private String date;
    private double amount;
    private String deliveryStatus;
    private String deliveryDate;
    private double discount;
    private Customer customer;
    private ArrayList<SalesLineItem> salesLines = new ArrayList<SalesLineItem>();
    private Invoice invoice;

    public SalesOrder(String date, double amount, String deliveryStatus, String deliveryDate, double discount)
    {
        this.date = date;
        this.amount = amount;
        this.deliveryStatus = deliveryStatus;
        this.deliveryDate = deliveryDate;
        this.discount = discount;
    }

    public SalesOrder()
    {
        
    }

    public int getSalesOrderID()
    {
        return salesOrderID;
    }

    public void setSalesOrderID(int salesOrderID)
    {
        this.salesOrderID = salesOrderID;
    }

    public double getAmount()
    {
        return amount;
    }

    public void setAmount(double amount)
    {
        this.amount = amount;
    }

    public String getDate()
    {
        return date;
    }

    public void setDate(String date)
    {
        this.date = date;
    }

    public String getDeliveryDate()
    {
        return deliveryDate;
    }

    public void setDeliveryDate(String deliveryDate)
    {
        this.deliveryDate = deliveryDate;
    }

    public String getDeliveryStatus()
    {
        return deliveryStatus;
    }

    public void setDeliveryStatus(String deliveryStatus)
    {
        this.deliveryStatus = deliveryStatus;
    }

    public double getDiscount()
    {
        return discount;
    }

    public void setDiscount(double discount)
    {
        this.discount = discount;
    }

    public Customer getCustomer()
    {
        return customer;
    }

    public void setCustomer(Customer customer)
    {
        this.customer = customer;
    }

    public void addSalesLine(SalesLineItem item)
    {
        salesLines.add(item);
    }

    public ArrayList<SalesLineItem> getSalesLineItems()
    {
        return salesLines;
    }

    public Invoice getInvoice()
    {
        return invoice;
    }

    public void setInvoice(Invoice invoice)
    {
        this.invoice = invoice;
    }

   public ArrayList getTotalSaleLines()
    {
       return salesLines;
   }



}
